package com.hyacinth.cloudnote.modules.auth.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 登录DTO
 * @author zhangfb
 */
@ToString
@NoArgsConstructor
@Setter
@Getter
public class LoginDTO implements Serializable {

    private static final long serialVersionUID = -6097684467199536823L;

    @Length(max = 32)
    @NotBlank
    @ApiModelProperty("账号")
    private String username;

    @Length(max = 32)
    @NotBlank
    @ApiModelProperty("密码")
    private String password;

}
